Optimal. Leaf size=95 \[ -\frac {2 b}{3 a f \sqrt {b \sec (e+f x)} (a \sin (e+f x))^{3/2}}+\frac {2 F\left (\left .e-\frac {\pi }{4}+f x\right |2\right ) \sqrt {b \sec (e+f x)} \sqrt {\sin (2 e+2 f x)}}{3 a^2 f \sqrt {a \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 95, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {2664, 2665,
2653, 2720} \begin {gather*} \frac {2 \sqrt {\sin (2 e+2 f x)} F\left (\left .e+f x-\frac {\pi }{4}\right |2\right ) \sqrt {b \sec (e+f x)}}{3 a^2 f \sqrt {a \sin (e+f x)}}-\frac {2 b}{3 a f (a \sin (e+f x))^{3/2} \sqrt {b \sec (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2653
Rule 2664
Rule 2665
Rule 2720
Rubi steps
\begin {align*} \int \frac {\sqrt {b \sec (e+f x)}}{(a \sin (e+f x))^{5/2}} \, dx &=-\frac {2 b}{3 a f \sqrt {b \sec (e+f x)} (a \sin (e+f x))^{3/2}}+\frac {2 \int \frac {\sqrt {b \sec (e+f x)}}{\sqrt {a \sin (e+f x)}} \, dx}{3 a^2}\\ &=-\frac {2 b}{3 a f \sqrt {b \sec (e+f x)} (a \sin (e+f x))^{3/2}}+\frac {\left (2 \sqrt {b \cos (e+f x)} \sqrt {b \sec (e+f x)}\right ) \int \frac {1}{\sqrt {b \cos (e+f x)} \sqrt {a \sin (e+f x)}} \, dx}{3 a^2}\\ &=-\frac {2 b}{3 a f \sqrt {b \sec (e+f x)} (a \sin (e+f x))^{3/2}}+\frac {\left (2 \sqrt {b \sec (e+f x)} \sqrt {\sin (2 e+2 f x)}\right ) \int \frac {1}{\sqrt {\sin (2 e+2 f x)}} \, dx}{3 a^2 \sqrt {a \sin (e+f x)}}\\ &=-\frac {2 b}{3 a f \sqrt {b \sec (e+f x)} (a \sin (e+f x))^{3/2}}+\frac {2 F\left (\left .e-\frac {\pi }{4}+f x\right |2\right ) \sqrt {b \sec (e+f x)} \sqrt {\sin (2 e+2 f x)}}{3 a^2 f \sqrt {a \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 10.33, size = 75, normalized size = 0.79 \begin {gather*} \frac {2 \cot (e+f x) \sqrt {b \sec (e+f x)} \left (-1+\, _2F_1\left (\frac {1}{2},\frac {3}{4};\frac {3}{2};\sec ^2(e+f x)\right ) \left (-\tan ^2(e+f x)\right )^{3/4}\right )}{3 a^2 f \sqrt {a \sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(277\) vs.
\(2(106)=212\).
time = 0.24, size = 278, normalized size = 2.93
method | result | size |
default | \(-\frac {\left (-2 \cos \left (f x +e \right ) \sin \left (f x +e \right ) \sqrt {\frac {1-\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}\, \sqrt {\frac {\sin \left (f x +e \right )-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}}\, \sqrt {\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}}\, \EllipticF \left (\sqrt {\frac {1-\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}, \frac {\sqrt {2}}{2}\right )-2 \sqrt {\frac {1-\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}\, \sqrt {\frac {\sin \left (f x +e \right )-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}}\, \sqrt {\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}}\, \EllipticF \left (\sqrt {\frac {1-\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}, \frac {\sqrt {2}}{2}\right ) \sin \left (f x +e \right )+\cos \left (f x +e \right ) \sqrt {2}\right ) \sin \left (f x +e \right ) \sqrt {\frac {b}{\cos \left (f x +e \right )}}\, \sqrt {2}}{3 f \left (a \sin \left (f x +e \right )\right )^{\frac {5}{2}}}\) | \(278\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains complex when optimal does not.
time = 0.12, size = 133, normalized size = 1.40 \begin {gather*} -\frac {2 \, {\left (\sqrt {i \, a b} {\left (\cos \left (f x + e\right )^{2} - 1\right )} {\rm ellipticF}\left (\cos \left (f x + e\right ) + i \, \sin \left (f x + e\right ), -1\right ) + \sqrt {-i \, a b} {\left (\cos \left (f x + e\right )^{2} - 1\right )} {\rm ellipticF}\left (\cos \left (f x + e\right ) - i \, \sin \left (f x + e\right ), -1\right ) - \sqrt {a \sin \left (f x + e\right )} \sqrt {\frac {b}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )\right )}}{3 \, {\left (a^{3} f \cos \left (f x + e\right )^{2} - a^{3} f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {\frac {b}{\cos \left (e+f\,x\right )}}}{{\left (a\,\sin \left (e+f\,x\right )\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________